import request from '@/utils/request'

let billListApi = {
  // 新版  商家账单列表
  getTenantAuditBillList(params){
    return request({
      url: '/tenantAudit/list',
      method: 'get',
      params
    })
  },
  // 新版  账单核验接口
  tenantAuditHeyan(data){
    return request({
      url: '/tenantAudit/heyan',
      method: 'post',
      data
    })
  },
   // 新版  账单导出
   tenantAuditExport(params){
    return request({
      url: '/tenantAudit/export',
      method: 'get',
      responseType: 'blob',
      params
    })
  },
    // 新版  批量核验
    tenantAuditHeyanPiliang(data){
      return request({
        url: '/tenantAudit/piliangheyan',
        method: 'post',
        data
      })
    },




  // 查询支付宝账户列表
  getZfbList(params){
    return request({
      url: '/tenantPushSettings/getSome',
      method: 'get',
      params
    })
  },

  // 查询支付宝流水
  getZFBbillList(data) {
    return request({
      url: '/pay/record/getLiuShui',
      method: 'post',
      data
    })
  },
  // 获取账单流水
  getList(data) {
    return request({
      url: '/financialStatement/list',
      method: 'get',
      params:data
    })
  },

  // 商户账单流水 /tenantFinancialStatement/list
  tenantFinancialList(data) {
    return request({
      url: '/tenantFinancialStatement/list',
      method: 'get',
      params:data
    })
  },
    // 商户账单 查询详情
    tenantFinancialStatementInfoBuId(id) {
      return request({
        url: `/tenantFinancialStatement/${id}`,
        method: 'get'
      })
    },



  // /tenantFinancialStatement/{id}
  // 查看账单详情
  getBillInfo(id) {
    return request({
      url: `/financialStatement/${id}`,
      method: 'get'
    })
  },
  // 售后单结算列表
  afterOrderSettlementList(data) {
    return request({
      url: '/saleOrderAfter/settlement/list',
      method: 'get',
      params:data
    })
  },
   // 售后单结算
   saleAfterSettled(data) {
    return request({
      url: '/financialStatement/saleOrderAfter',
      method: 'post',
      data
    })
  },
  //提现结算
  tixianSettlementApi(data) {
    return request({
      url: '/financialStatement/withdrawal',
      method: 'post',
      data
    })
  },
}
export default billListApi

